package com.anxin.dao.impl;

import org.springframework.stereotype.Repository;

import com.anxin.bean.User;
import com.anxin.dao.UserDAO;

@Repository("userDao")
public class UserDAOImpl extends BaseDAOImpl<User, Integer> implements UserDAO {
	public User checkLogin(User user) {
		try {
			return (User) this.getSqlSessionTemplate().selectOne("User.login", user);
		} catch (RuntimeException re) {
			throw re;
		}
	}
}